
import { useClickAway } from 'ahooks'
import React, { Dispatch, FC, SetStateAction, useRef } from 'react'

const Infodialog: FC<{ cb: Dispatch<SetStateAction<boolean>> }> = (props) => {
 
  return (<div className=" bg-white rounded-2xl absolute w-r29.0 h-r18.2 left-1/2  first-letter: transform -translate-x-1/2   z-50  " >
    <div className=' relative p-r1.2'>
      <span className=' text-r1.4 absolute right-4 top-4 iconfont icon-cuowu' onClick={() => { props.cb(false) }}></span>
      <h3 className=' text-black font-bold text-r1.4 leading-r2.1'>活动说明</h3><br />
      <p className=' text-r1.4  leading-r2.1'>活动期间分享活动或AI生成的头像给好友， 每个好友点击查看后，将获得5点AI点数， 每天最高30点。</p>  
      <p className=' text-r1.4 leading-r3.1'>活动时间： </p>
      <p className=' text-r1.2'>2023年8月18日18:00 － 2023年8月27日18:00 </p>
    </div>


  </div>)
}

export default Infodialog

